import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;


public class Main {
    public static void main(String[] args){
        AllyControlCenter subjetOfAllyControlCenter = new ConcreteAllyControlCenter("S8");
        subjetOfAllyControlCenter.join((Observer) new Player("Uzi"));
        subjetOfAllyControlCenter.join((Observer) new Player("Jakelove"));
        subjetOfAllyControlCenter.join((Observer) new Player("Faker"));
        subjetOfAllyControlCenter.join((Observer) new Player("Rookie"));
        subjetOfAllyControlCenter.join((Observer) new Player("TheShy"));

        subjetOfAllyControlCenter.notifyObserver("Uzi");
        //因为两个类都是固定的，所以没写读XML文件来选定多个类中的一个类
        subjetOfAllyControlCenter.notifyObserver("Jakelove");
    }
}
